import json
from email.encoders import encode_noop
from fileinput import filename

from config import BASE_DIR


def read_json_data(filename):
    with open(filename, "r",encoding = "utf8") as f:
        json_data = json.load(f)
        login_list = []
        for data in json_data:
            tem = tuple(data.values())
            login_list.append(tem)

    return login_list


if __name__ == '__main__':
    # print(read_json_data("../data/login_data.json"))
    filename = BASE_DIR + "/data/add_data.json"
    print(read_json_data(filename))

